﻿using System;
using System.Runtime.Serialization;

namespace Mockery.Core
{
    /// <summary>
    /// Exception thrown when an attempt to create a duplicate mock type is made
    /// </summary>
    [Serializable]
    public class DuplicateMockException : Exception
    {
        public DuplicateMockException(string message, Exception innerException) 
            : base(message, innerException)
        {}

        public DuplicateMockException(string message)
            : base(message)
        {}

        public DuplicateMockException()
        {}

        protected DuplicateMockException(SerializationInfo serializationInfo, StreamingContext streamingContext)
            : base(serializationInfo, streamingContext)
        {}
    }
}
